package com.ziyun.erp.modules.member.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户订单中的佣金(审核中的佣金)
 * 
 * @author guizhao
 * @email ...
 * @date 2018-08-29 10:59:35
 */
@TableName("user_order_commission")
public class UserOrderCommissionEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 订单号
	 */
	@TableId(type = IdType.INPUT)
	private Long orderId;
	/**
	 * 会员ID
	 */
	private Integer userId;
	/**
	 * 分享会员ID
	 */
	private Integer sUserId;
	/**
	 * 订单金额
	 */
	private BigDecimal orderAmount;
	/**
	 * 佣金
	 */
	private BigDecimal commission;
	/**
	 * 佣金生成时间
	 */
	private Date createTime;
	/**
	 * 佣金状态(0:冻结;1:可提现)，佣金生成后冻结7天
	 */
	private Integer status;

	/**
	 * 设置：订单号
	 */
	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}
	/**
	 * 获取：订单号
	 */
	public Long getOrderId() {
		return orderId;
	}
	/**
	 * 设置：会员ID
	 */
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	/**
	 * 获取：会员ID
	 */
	public Integer getUserId() {
		return userId;
	}
	/**
	 * 设置：分享会员ID
	 */
	public void setSUserId(Integer sUserId) {
		this.sUserId = sUserId;
	}
	/**
	 * 获取：分享会员ID
	 */
	public Integer getSUserId() {
		return sUserId;
	}
	/**
	 * 设置：订单金额
	 */
	public void setOrderAmount(BigDecimal orderAmount) {
		this.orderAmount = orderAmount;
	}
	/**
	 * 获取：订单金额
	 */
	public BigDecimal getOrderAmount() {
		return orderAmount;
	}
	/**
	 * 设置：佣金
	 */
	public void setCommission(BigDecimal commission) {
		this.commission = commission;
	}
	/**
	 * 获取：佣金
	 */
	public BigDecimal getCommission() {
		return commission;
	}
	/**
	 * 设置：佣金生成时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：佣金生成时间
	 */
	public Date getCreateTime() {
		return createTime;
	}
	/**
	 * 设置：佣金状态(0:冻结;1:可提现)，佣金生成后冻结7天
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}
	/**
	 * 获取：佣金状态(0:冻结;1:可提现)，佣金生成后冻结7天
	 */
	public Integer getStatus() {
		return status;
	}
}
